Skip to main content

Tab Exists

AutomatR.Web.TabExists

The "Tab Exists" activity in AutomatR is designed for UI automation workflows, allowing you to determine the existence of a specific tab within a browser instance. This activity is useful when you need to check whether a particular webpage is open in the browser.

Properties

NameDescription
Input
Browser TypeSpecifies the type of browser to check for the existence of the tab. Select the desired browser from the available options.
TitleSpecifies the title of the webpage to identify the tab. String variables containing the title of the webpage.
URLSpecifies the URL of the webpage to identify the tab. String variables containing the URL of the webpage.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Tab Exists" activity. This can be useful for handling synchronization issues or waiting for the browser to load. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ExistsOutputs a Boolean result indicating whether the specified tab exists in the selected browser. Variables of relevant types (e.g., Boolean variables) to store the existence result.

How to use:

  1. Drag and drop the "Tab Exists" activity onto the workflow.
  2. Select the desired browser type from the available options (e.g., Chrome, Firefox, Edge).
  3. Specify either the title or the URL of the webpage you want to check for in the "Title" or "URL" property.
  4. Optionally, configure the delay to wait before executing the "Tab Exists" activity.
  5. Execute the workflow to check the existence of the specified tab within the chosen browser.

Example: Consider an example where the "Tab Exists" activity is used to check if a tab with the title "My Dashboard" exists in the Chrome browser:

Tab Exists:
Browser Type: Chrome
Title: "My Dashboard"
Delay: 5 (seconds)
Exists: isTabExists

In this example, the activity checks whether a tab with the title "My Dashboard" exists in the Chrome browser. The result of the existence check is stored in the Boolean variable "isTabExists" for further handling in the workflow.